#!/bin/bash

set -e

if [ $BUILDKITE_PULL_REQUEST_BASE_BRANCH ]; then
	export BASE=`git rev-parse origin/$BUILDKITE_PULL_REQUEST_BASE_BRANCH | head -c 7`
fi

export HEAD=`git rev-parse @ | head -c 7`

